﻿using FangPage.Data;
using System;
using System.Collections.Generic;
using System.Linq;

namespace FangPage.User.Model
{
    public class RoleInfo
    {
        private string m_id=String.Empty;//角色ID
        private string m_name = String.Empty;//角色名称
        private string m_code = String.Empty;//角色标识
        private string m_detail = String.Empty;//角色描述
        private short m_isadmin;//是否是管理员 1：是 0：不是
        private string m_departs=String.Empty;//部门权限
        private string m_menus = String.Empty;//菜单权限
        private short m_status=1;//是否可用

        /// <summary>
        /// 角色ID
        /// </summary>
        [PrimaryKey]
        [UUID]
        public string id
        {
            get { return m_id; }
            set { m_id = value; }
        }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string name
        {
            get { return m_name; }
            set { m_name = value; }
        }

        /// <summary>
        /// 角色标识
        /// </summary>
        public string code
        {
            get { return m_code; }
            set { m_code = value; }
        }

        /// <summary>
        /// 角色描述
        /// </summary>
        public string detail
        {
            get { return m_detail; }
            set { m_detail = value; }
        }

        /// <summary>
        /// 是否是管理员
        /// </summary>
        public short isadmin
        {
            get { return m_isadmin; }
            set { m_isadmin = value; }
        }

        /// <summary>
        /// 部门权限
        /// </summary>
        public string departs
        {
            get { return m_departs; }
            set { m_departs = value; }
        }

        /// <summary>
        /// 菜单权限
        /// </summary>
        public string menus
        {
            get { return m_menus; }
            set { m_menus = value; }
        }

        /// <summary>
        /// 是否可用
        /// </summary>
        public short status
        {
            get { return m_status; }
            set { m_status = value; }
        }
    }
}
